/**
 */

package com.bei_en.common.web;

/**
 * @author Guocg
 *
 */
public class JsonResult {

	public static final String SUCCESS = "成功";
	public static final String FAIL = "失败";
	private String sessionId;
	private int ret;
	private String msg;
	private String method;
	private Object data;

	@Override
	public String toString() {

		return "JsonResult [sessionId=" + sessionId + ", ret=" + ret + ", msg="
				+ msg + ", method=" + method + ", data=" + data + "]";
	}

	public JsonResult() {

	}

	public JsonResult(String s, int ret, String msg, String method, Object data) {

		super();
		this.sessionId = s;
		this.ret = ret;
		this.msg = msg;
		this.method = method;
		this.data = data;
	}

	public String getSessionId() {

		return sessionId;
	}

	public void setSessionId(String sessionId) {

		this.sessionId = sessionId;
	}

	public String getMethod() {

		return method;
	}

	public void setMethod(String method) {

		this.method = method;
	}

	public Object getData() {

		return data;
	}

	public void setData(Object data) {

		this.data = data;
	}

	public int getRet() {

		return ret;
	}

	public void setRet(int ret) {

		this.ret = ret;
	}

	public String getMsg() {

		return msg;
	}

	public void setMsg(String msg) {

		this.msg = msg;
	}

}
